package com.canto.wanna.user.services.impl;

import com.canto.common.services.DataService;
import com.canto.wanna.user.dao.ResourceClassDao;
import com.canto.wanna.user.pojo.doo.ResourceClassDO;
import com.canto.wanna.user.pojo.entity.ResourceClass;
import com.canto.wanna.user.pojo.query.ResourceClassQuery;
import com.canto.wanna.user.services.ResourceClassService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 模块资源分类表
 *
 * @Author jsryin
 * @Date 2021/7/14 7:56
 */
@Service
@Transactional(readOnly = true)
public class ResourceClassServiceImpl extends DataService<ResourceClassDao> implements ResourceClassService {

    @Override
    public ResourceClassDO get(ResourceClassQuery query) {
        return super.get(query);
    }

    public List<ResourceClassDO> findList(ResourceClassQuery resourceClassQuery) {
        return super.findList(resourceClassQuery);
    }

    @Transactional(readOnly = false, rollbackFor = Exception.class)
    public long save(ResourceClass resourceClass) {
        return super.save(resourceClass);
    }

    @Transactional(readOnly = false, rollbackFor = Exception.class)
    public long delete(ResourceClass resourceClass) {
        return super.delete(resourceClass);
    }

}
